<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ include file="config.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>首页</title>
	<script type="text/javascript" src="${ctx}/js/jquery-3.3.1.min.js"></script>
	<script type="text/javascript" src="${ctx}/js/index.js"></script>
	<link href="${ctx}/css/index.css" rel="stylesheet" />	
</head>
<body style='overflow:-Scroll;overflow-x:hidden'>
	<div class="handler" id="${user.id}">
		<ul>
			<li><img src="images/q_images/logo.gif"></li>
			<li><button id="index">首页</button></li>
			<li><button id="vip">会员中心</button></li>
			<li><button id="myOrder">查看订单</button></li>
			<li><a id="car" href="#"><img src="images/q_images/top_cart.gif">购物车<a></li>
			<li><a href="login.jsp">后台管理</a></li>
			<c:choose>
				<c:when test="${user == null}">
					<li><a href="UserLogin.jsp">登录</a></li>
					<li><a href="register.jsp">注册</a></li>
				</c:when>
				<c:otherwise>
					<li><a href="#" >${user.name}</a></li>
					<li id="logout"><a href="#">注销</a></li>
					
				</c:otherwise>
			</c:choose>
		</ul>
	</div>
	
	<div class="handler2">
		&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp商品搜索：&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp商品大类：&nbsp&nbsp
		<select id="bigType">
			<option>&nbsp&nbsp&nbsp&nbsp---&nbsp&nbsp&nbsp&nbsp</option>
 			<c:forEach items="${types}" var="type">
	 			<c:choose>
				   <c:when test="${type.pid == '0'}">   
						<option id="${type.id}">${type.name}</option>     
				   </c:when>
				</c:choose>
			</c:forEach>	
		</select>
		&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp商品小类：&nbsp&nbsp
		<select id="littleType">	
			<option>&nbsp&nbsp&nbsp&nbsp---&nbsp&nbsp&nbsp&nbsp</option>
		</select>
		&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp【关键字】商品名称：
 		<input id="keyword" type="text" /> <img id="search" src="images/q_images/search.gif"/><!--<button style="background-image: url('images/q_images/search.gif')" ></button> -->
	</div>
	<div class="welcome">您好，欢迎光临！这里有我们精心为您推荐的商品，祝您消费愉快！</div>
	<iframe id="leftIframe" class="handler3" src="" frameborder="no" ></iframe>
	<iframe id="rightIframe" class="handler4" src="" frameborder="no" ></iframe>
	
</body>
</html>